cmake_minimum_required (VERSION 3.11)

set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)

project (Tutorial)

set(LIBFUZZER_FLAGS "-g -fsanitize=fuzzer,address -fprofile-instr-generate -fcoverage-mapping")
set(CMAKE_C_FLAGS ${LIBFUZZER_FLAGS})
set(CMAKE_CXX_FLAGS ${LIBFUZZER_FLAGS})

add_executable(Tutorial lib/foo.c lib/foo.h test_fuzz.cpp)